package com.foreverwin.jzymes.qc.point.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.qc.point.mapper.PointChecklistMapper;
import com.foreverwin.jzymes.qc.point.domain.PointChecklist;
import com.foreverwin.jzymes.qc.point.service.IPointChecklistService;

/**
 * 样品/检具点检 服务层实现
 * 
 * @author levy
 * @date 2019-07-09
 */
@Service
public class PointChecklistServiceImpl implements IPointChecklistService
{
	@Autowired
	private PointChecklistMapper pointChecklistMapper;

	/**
     * 查询样品/检具点检信息
     * 
     * @param handle 样品/检具点检ID
     * @return 样品/检具点检信息
     */
    @Override
	public PointChecklist selectPointChecklistById(String handle)
	{
	    return pointChecklistMapper.selectPointChecklistById(handle);
	}
	
	/**
     * 查询样品/检具点检列表
     * 
     * @param pointChecklist 样品/检具点检信息
     * @return 样品/检具点检集合
     */
	@Override
	public List<PointChecklist> selectPointChecklistList(PointChecklist pointChecklist)
	{
	    return pointChecklistMapper.selectPointChecklistList(pointChecklist);
	}
	
    /**
     * 新增样品/检具点检
     * 
     * @param pointChecklist 样品/检具点检信息
     * @return 结果
     */
	@Override
	public int insertPointChecklist(PointChecklist pointChecklist)
	{
	    return pointChecklistMapper.insertPointChecklist(pointChecklist);
	}
	
	/**
     * 修改样品/检具点检
     * 
     * @param pointChecklist 样品/检具点检信息
     * @return 结果
     */
	@Override
	public int updatePointChecklist(PointChecklist pointChecklist)
	{
	    return pointChecklistMapper.updatePointChecklist(pointChecklist);
	}

	/**
     * 删除样品/检具点检对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePointChecklistByIds(String ids)
	{
		return pointChecklistMapper.deletePointChecklistByIds(ids.split(","));
	}
	
}
